#coding=utf-8
from django.contrib import admin
from forum.models import *

class ArticleAdmin(admin.ModelAdmin):
    fields = ['title', 'summary', 'content', 'tags']

    list_display = ('title', 'pub_date')
    list_filter = ('pub_date',)
    #date_hierarchy = 'pub_date'

    search_fields = ('title', 'content')
    #raw_id_fields = ('tags',)
    filter_horizontal = ('tags',)

admin.site.register(Category)
admin.site.register(Group)
admin.site.register(Thread)
admin.site.register(Post)
